/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ucsur.tp.sistemainventario.utils;

import java.sql.*;
/**
 *
 * @author luis.hidalgo
 */
public class Conexion {
    
      public static Connection getConnection() {
    try {
      
      Class.forName("com.mysql.jdbc.Driver");
      
      String urlJdbc = "jdbc:mysql://localhost:3306/sysinventario";
      String username = "root";
      String password = "1234";
      Connection conn = DriverManager.getConnection(urlJdbc, username, password);
      
      return conn;
    } catch (Exception ex) {
      ex.printStackTrace();
    }
    return null;
  }
    
}
